package com.mikufufu.blog.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户表
 * 
 */
@Data
@TableName(value = "blog_user")
public class User implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户id")
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value = "用户头像")
    private String avatar;

    /**
     * 角色
     */
    @TableField(value = "`role`")
    @ApiModelProperty(value = "角色")
    private Integer role;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 电话号码
     */
    @TableField(value = "phone_number")
    @ApiModelProperty(value = "电话号码")
    private String phoneNumber;

    /**
     * 性别(0.保密，1.男，2女)
     */
    @TableField(value = "gender")
    @ApiModelProperty(value = "性别(0.保密，1.男，2女)")
    private Integer gender;

    /**
     * 用户状态（0.正常，1.封号）
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "用户状态（0.正常，1.封号）")
    private Integer status;

    private static final long serialVersionUID = 1L;
}